﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FBroSharp;
using FBroSharp.DataType;
using FBroSharp.Event;

namespace 普通创建浏览器
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string url = "https://www.baidu.com";
            FBroSharpWindowsInfo windowsInfo = new FBroSharpWindowsInfo {
                parent_window = this.Handle,
                x = 0,
                y = 0,
                width = this.Width,    
                height = this.Height
            };
            FBroSharpBrowserEvent events = new FBroSharpBrowserEvent();
            FBroSharpControl.CreatBrowser(url,windowsInfo,default,default,default,events,default);
        }
    }
}
